package com.li.mapper;

import com.li.pojo.OrderSetting;

import java.util.Date;
import java.util.List;
import java.util.Map;

public interface OrderSettingMapper {
    //添加预约设置时间
    void Add(OrderSetting orderSettings);
    //查询预约设置时间是否存在
    Long findCountByOrderDate(Date date);
    //更新预约设置时间
    void updateOrderSetting(OrderSetting orderSetting);
    //查询当月的预约设置
    List<OrderSetting> getOrderSettingByMonth(Map map);

    void editNumberByOrderDate(OrderSetting orderSetting);
    //根据日期查询预约设置
    OrderSetting findByOrderDate(Date orderDate);

    //通过预约日期更新预约人数
    void editReservationsByOrderDate(OrderSetting orderSetting);

    // 定时删除预约设置
    public void delete4Month(String date);
}
